package com.pansoft.kline.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/12/3 10:54
 * @desc : 交易所二级页面的model
 * @version: 1.0
 */
public class BourseSecondPageModel implements Serializable {

    /**
     * code : 0
     * data : {"tickers":[{"id":"59","high":4226.18,"low":3890,"buy":3942.16,"sell":3943.29,"last":3943.29,"vol":103359.32685651,"time":1543805632235,"open":4093.33,"24_open":4093.33},{"id":"60","high":34.265,"low":31.423,"buy":31.665,"sell":31.68,"last":31.665,"vol":9370983.7359861,"time":1543805614578,"open":33.344,"24_open":33.344},{"id":"62","high":4206.06,"low":3915.16,"buy":3953.8,"sell":3954.7,"last":3953.8,"vol":27326.521321261,"time":1543805613587,"open":4078.5,"24_open":4078.5},{"id":"64","high":4202.39,"low":3806.95,"buy":3870.64,"sell":3871.08,"last":3873.21,"vol":351947.55771053,"time":1543805614444,"open":4052.84,"24_open":4052.84},{"id":"67","high":34.194,"low":31.267,"buy":31.492,"sell":31.557,"last":31.515,"vol":1445825.7972394,"time":1543805614555,"open":33.284,"24_open":33.284},{"id":"71","high":34.111,"low":31.171,"buy":31.465,"sell":31.474,"last":31.465,"vol":1.9687913554743E7,"time":1543805614492,"open":33.298,"24_open":33.298},{"id":"920","high":4281.0058,"low":3983.3875,"buy":4013.7845,"sell":4015.3139,"last":4015.3945,"vol":42251.8829,"time":1543805629836,"open":4174.4804,"24_open":4278.7701},{"id":"921","high":0.00821387,"low":0.00800367,"buy":0.00803227,"sell":0.0080475,"last":0.00804262,"vol":811386.338387,"time":1543805630469,"open":0.00815585,"24_open":0.00812793},{"id":"922","high":0.02841426,"low":0.02786952,"buy":0.02828083,"sell":0.02829507,"last":0.02829508,"vol":158625.313848,"time":1543805630841,"open":0.02814566,"24_open":0.02798349},{"id":"923","high":0.00127598,"low":0.00115851,"buy":0.00124918,"sell":0.00125147,"last":0.00125056,"vol":2680977.05238,"time":1543805635838,"open":0.00123977,"24_open":0.00115982},{"id":"924","high":119.7734,"low":112.5747,"buy":113.5,"sell":113.5418,"last":113.5456,"vol":480307.7522,"time":1543805635773,"open":117.4713,"24_open":119.6737},{"id":"925","high":0.04549331,"low":0.04122,"buy":0.04407794,"sell":0.04422424,"last":0.04422449,"vol":750904.49026,"time":1543805631839,"open":0.04429898,"24_open":0.041398},{"id":"1242","high":0.02287909,"low":0.02210036,"buy":0.02239526,"sell":0.02248002,"last":0.02247999,"vol":3400.297334,"time":1543805630215,"open":0.02219064,"24_open":0.02273902},{"id":"1243","high":0.01949,"low":0.01802758,"buy":0.019018,"sell":0.01901805,"last":0.01901164,"vol":1331.319898,"time":1543805630458,"open":0.01875013,"24_open":0.01899878},{"id":"1244","high":0.00196893,"low":0.00190798,"buy":0.00193259,"sell":0.00193266,"last":0.00193293,"vol":14530.58009,"time":1543805629814,"open":0.0019412,"24_open":0.00195532},{"id":"1245","high":6.1365E-4,"low":5.8614E-4,"buy":5.9055E-4,"sell":5.9384E-4,"last":5.9226E-4,"vol":3909.66901,"time":1543805604260,"open":5.8701E-4,"24_open":6.1184E-4},{"id":"1246","high":2.2534E-4,"low":2.1299E-4,"buy":2.1536E-4,"sell":2.2063E-4,"last":2.2092E-4,"vol":3470.687,"time":1543805630372,"open":2.1998E-4,"24_open":2.2534E-4},{"id":"1247","high":5.1927E-4,"low":5.0266E-4,"buy":5.0266E-4,"sell":5.0377E-4,"last":5.0361E-4,"vol":444564.77664,"time":1543805629969,"open":5.0908E-4,"24_open":5.0668E-4},{"id":"1248","high":0.00444883,"low":0.00430618,"buy":0.00441151,"sell":0.00443226,"last":0.00443268,"vol":2069.06894,"time":1543805616768,"open":0.00430744,"24_open":0.00436204},{"id":"1249","high":97.2451,"low":89.501,"buy":89.9705,"sell":90.168,"last":90.1841,"vol":15424.976,"time":1543805631381,"open":92.905,"24_open":97.2449}],"currencies":["ALL","USD","USDT","BTC","ETH","OKB"]}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<TickersBean> tickers;
        private List<String> currencies;

        public List<TickersBean> getTickers() {
            return tickers;
        }

        public void setTickers(List<TickersBean> tickers) {
            this.tickers = tickers;
        }

        public List<String> getCurrencies() {
            return currencies;
        }

        public void setCurrencies(List<String> currencies) {
            this.currencies = currencies;
        }

        public static class TickersBean {
            /**
             * id : 59
             * high : 4226.18
             * low : 3890
             * buy : 3942.16
             * sell : 3943.29
             * last : 3943.29
             * vol : 103359.32685651
             * time : 1543805632235
             * open : 4093.33
             * 24_open : 4093.33
             */

            private String id;
            private double high;
            private double low;
            private double buy;
            private double sell;
            private double last;
            private double vol;
            private long time;
            private double open;
            @SerializedName("24_open")
            private double _$24_open;
            private int lastTrendType;

            public int getLastTrendType() {
                return lastTrendType;
            }

            public void setLastTrendType(int lastTrendType) {
                this.lastTrendType = lastTrendType;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public double getHigh() {
                return high;
            }

            public void setHigh(double high) {
                this.high = high;
            }

            public double getLow() {
                return low;
            }

            public void setLow(double low) {
                this.low = low;
            }

            public double getBuy() {
                return buy;
            }

            public void setBuy(double buy) {
                this.buy = buy;
            }

            public double getSell() {
                return sell;
            }

            public void setSell(double sell) {
                this.sell = sell;
            }

            public double getLast() {
                return last;
            }

            public void setLast(double last) {
                this.last = last;
            }

            public double getVol() {
                return vol;
            }

            public void setVol(double vol) {
                this.vol = vol;
            }

            public long getTime() {
                return time;
            }

            public void setTime(long time) {
                this.time = time;
            }

            public double getOpen() {
                return open;
            }

            public void setOpen(double open) {
                this.open = open;
            }

            public double get_$24_open() {
                return _$24_open;
            }

            public void set_$24_open(double _$24_open) {
                this._$24_open = _$24_open;
            }
        }
    }
}
